package gam.t1.triggers;

import gam.t1.TextParser;
import net.kyori.adventure.text.Component;
import net.kyori.adventure.text.event.HoverEvent;

public final class HoverTrigger extends BaseTrigger{
    @Override
    public Component runTrigger(Component component, String argument) {
        return component.hoverEvent(HoverEvent.showText(TextParser.toTranslate(argument)));
    }

    @Override
    public boolean isSync() {
        return false;
    }
}
